package com.zkthink.ceres.applet.pcVehicles.controller;

import com.zkthink.base.R;
import com.zkthink.ceres.applet.ceresStore.domain.vo.NearbyIdLocalVo;
import com.zkthink.ceres.applet.pcVehicles.service.PcVehiclesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author cmz
 * @Date 2024-05-06 9:17
 */
@Slf4j
@Validated
@RestController
@RequestMapping("/applet/pcVehicles")
@Api(value = "pcVehicles", tags = "理疗车信息")
public class PcVehiclesController {
    @Autowired
    private PcVehiclesService pcVehiclesService;

    @ApiOperation(value = "查询附近可接订单理疗车位置", notes = "查询附近可接订单理疗车位置")
    @PostMapping(value = "/findNearbyStore")
    public R findNearbyStore(@RequestBody NearbyIdLocalVo nearbyIdLocalVo) {
        return pcVehiclesService.findNearbyStore(nearbyIdLocalVo);
    }
}
